package br.com.rise.balanceadorTomcat

class ParserByteJavaArrayController {

    static scaffold = true
	
	def upload = {
    def f = request.getFile('aplicacao')
    if(!f.empty) {
      f.transferTo( new File('/C:/Users/Leonardo/Desktop/aplicacao.jar') )
      response.sendError(200,'Done');
    }    
    else {
       flash.message = 'file cannot be empty'
       render(view:'uploadForm')
    }
}
	
}

